import { type ConfigInfo as BaiduConfigInfo } from './net-disk/baidu/ConfigInfo';
import * as nodeFileSys from "fs";
import * as nodePath from "path";

export interface ConfigInfo {
  netDisk: {
    Baidu?: BaiduConfigInfo
  },
};

export async function getConfigInfo(): Promise<ConfigInfo> {
  const content = await nodeFileSys.promises.readFile(
    nodePath.join(process.cwd(), "static/config.git-ignore.json"),
    "utf-8"
  );
  return JSON.parse(content);
}
